package com.example.librarymanagement.dto.periodical;

import com.example.librarymanagement.entity.Periodical;
import com.example.librarymanagement.util.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author fgba
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class PeriodicalIssueUpdDto extends BaseDto<Periodical> {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "当前数量")
    private Integer count;

    @ApiModelProperty(value = "总数量")
    private Integer total;

    @ApiModelProperty(value = "破损数量")
    private Integer brokenCount;
}
